package com.guijq.selfcode.javase;

/**
 * @author yangjf
 * @time 2019-06-17 14:19
 */
public class Test7 {
    static void aMethod(StringBuffer sf1, StringBuffer sf2) {
        sf1.append(sf2);
        sf2 = sf1;
        System.out.println(sf2.toString());
    }
    public static void main(String[] args){
        StringBuffer sf1 = new StringBuffer("A");
        StringBuffer sf2 = new StringBuffer("B");
        aMethod(sf1,sf2);
        System.out .println(sf1+ ":"+sf2);
    }
}
